
import {get,post} from '../../utils/reuqest'
import {HouseQuery,HouseData} from './types'
/**
 * 获取房间列表
 * @param params  请求参数
 * @returns 
 */
export const getList=(params:HouseQuery)=>{

    return get("houses/list",params)

}
 
/**
 * 房间添加
 * @param data 
 * @returns 
 */
export const add=(data:HouseData)=>{


    return post("houses/add",data);

}
export const del=(id:number)=>{

    return get("houses/delete",{id})

}